package com.chen.service.util;

import com.chen.model.entity.user.UserInfo;

public class AuthContextUtil {
         private static  final   ThreadLocal<UserInfo> threadLocal = new ThreadLocal<UserInfo>();
         public static  void set(UserInfo userInfo){
             threadLocal.set(userInfo);
         }
         public static  UserInfo get(){
            return threadLocal.get();
         }
         public static void remove(){
             threadLocal.remove();
         }

}